<?php
require_once('connect.inc');
$email = $_GET['email'];
$query = "select * FROM users where email=$email";
$result = mysql_query($query);
if( mysql_num_rows($result) == 0 ){
  echo 1;
} else {
  echo 0;
}
